// MailMan.h: interface for the CMailMan class.
//
//////////////////////////////////////////////////////////////////////

#ifndef _SEMAILLIB_MAILMAN_H
#define _SEMAILLIB_MAILMAN_H

#include "SMTPSocket.h"
#include "MIMEmail.h"

class CMailMan  
{
public:
	void SetSmtpHost(const std::string& host);
	void SetSmtpPort(unsigned int port);
	void SetSmtpUsername(const std::string& usr);
	void SetSmtpPassword(const std::string& pwd);
	void EnableSmtpSSL(bool enable = true);

	bool SendMail(CEmail& mail);
	CMailMan();
	virtual ~CMailMan();

private:
	SocketHandler m_SockHandler;
	CSMTPSocket m_SmtpSock;
};

#endif 